<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>repeat方法</title>
</head>

<body>
    <script type="text/javascript">
        console.log("y".repeat(5))
    </script>
</body>

</html>